package com.springcloud.sc.ucpv5.client.commondata.idl.sj3;


/**
 * Generated from IDL struct "MessageInfo".
 *
 * @author JacORB IDL compiler V 2.3-beta-2, 14-Oct-2006
 * @version generated at 2014-10-29 11:48:54
 */

public final class MessageInfoHelper
{
	private static org.omg.CORBA.TypeCode _type = null;
	public static org.omg.CORBA.TypeCode type ()
	{
		if (_type == null)
		{
			_type = org.omg.CORBA.ORB.init().create_struct_tc(com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MessageInfoHelper.id(),"MessageInfo",new org.omg.CORBA.StructMember[]{new org.omg.CORBA.StructMember("id", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("sender", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("receiver", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("sendTime", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("receiverTime", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("responseTime", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(3)), null),new org.omg.CORBA.StructMember("status", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)), null),new org.omg.CORBA.StructMember("messageType", org.omg.CORBA.ORB.init().get_primitive_tc(org.omg.CORBA.TCKind.from_int(2)), null),new org.omg.CORBA.StructMember("content", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep1", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep2", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep3", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep4", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep5", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep6", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep7", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep8", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep9", org.omg.CORBA.ORB.init().create_string_tc(0), null),new org.omg.CORBA.StructMember("keep10", org.omg.CORBA.ORB.init().create_string_tc(0), null)});
		}
		return _type;
	}

	public static void insert (final org.omg.CORBA.Any any, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MessageInfo s)
	{
		any.type(type());
		write( any.create_output_stream(),s);
	}

	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MessageInfo extract (final org.omg.CORBA.Any any)
	{
		return read(any.create_input_stream());
	}

	public static String id()
	{
		return "IDL:com/client/idl/sj3/MessageInfo:1.0";
	}
	public static com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MessageInfo read (final org.omg.CORBA.portable.InputStream in)
	{
		com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MessageInfo result = new com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MessageInfo();
		result.id=in.read_long();
		result.sender=in.read_string();
		result.receiver=in.read_string();
		result.sendTime=in.read_long();
		result.receiverTime=in.read_long();
		result.responseTime=in.read_long();
		result.status=in.read_short();
		result.messageType=in.read_short();
		result.content=in.read_string();
		result.keep1=in.read_string();
		result.keep2=in.read_string();
		result.keep3=in.read_string();
		result.keep4=in.read_string();
		result.keep5=in.read_string();
		result.keep6=in.read_string();
		result.keep7=in.read_string();
		result.keep8=in.read_string();
		result.keep9=in.read_string();
		result.keep10=in.read_string();
		return result;
	}
	public static void write (final org.omg.CORBA.portable.OutputStream out, final com.springcloud.sc.ucpv5.client.commondata.idl.sj3.MessageInfo s)
	{
		out.write_long(s.id);
		out.write_string(s.sender);
		out.write_string(s.receiver);
		out.write_long(s.sendTime);
		out.write_long(s.receiverTime);
		out.write_long(s.responseTime);
		out.write_short(s.status);
		out.write_short(s.messageType);
		out.write_string(s.content);
		out.write_string(s.keep1);
		out.write_string(s.keep2);
		out.write_string(s.keep3);
		out.write_string(s.keep4);
		out.write_string(s.keep5);
		out.write_string(s.keep6);
		out.write_string(s.keep7);
		out.write_string(s.keep8);
		out.write_string(s.keep9);
		out.write_string(s.keep10);
	}
}
